retro_library: store the library's functions in retro_library_t.
retro_core: use the stored functions in retro_library_t
retro_library: added construct and finalize functions.
Remove unwanted temporary files.
retro_library: remove unneeded functions.