[jni] if compiling with visual studio define types ourselfs, since m$ does not provide c99 std header