Launcher: fix jni issues.