loadLibrary() calls changed to load()