Fixing loadLibrary to return success