Initial implementation of library loader.