Fixed loading libraries on linux.