The title to all property acquired for the purposes of the library, when not inconsistent with the terms of its acquisition, or otherwise designated, vests in the municipality in which the library is situated, and in the name of the municipal corporation may be sued for and defended by action at law or otherwise.