gl_jni: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8