modified native library loading