Fix loading of library from standard locations.