fix compilation error for chess-jni