The board of library trustees may purchase real estate in the name of the library district for the location of public library buildings and branch libraries, and for the purpose of enlarging the grounds.