automated build for native JNI library