Fixed auto loading of native library