Updated the library loader to be more dynamic. It now does a lookup in
the system first, then it loads from the resources directory.