Moving native code under jni