Let compilation depend on generation of jni header file