jni: fix build issue under linux