fix to cmake and code, so now on Windows JNI native actually compiles