jni restore with extra libraries