Copyright (c) 2012 Kevin Wellwood
All rights reserved.
This source code is distributed under the Modified BSD License. For terms and
conditions, see license.txt.
Finalizes the tile manager before application exit. No more libraries can
be loaded after this has been called. However, references to loaded
libraries will remain valid and must still be unloaded after use.
Synchronously loads a library by name. 'name' should be the base name
of the library, not including path information or a file extension.
If 'bitmaps' is True, all of the library's bitmaps will be loaded.
Otherwise, just the tile information will be loaded. Null will be
returned on error.
Tile libraries are reference counted and must be unloaded with
Unload_Library() when the caller is finished with it.