Makefile supports MinGW now
Shift raw data API to stdint.h
Fix json test on MinGW
Fix a use-before-def bug

Pretty minor, but gets triggered if fstrncmp was called with n
<= 0. Such cases now always compare as equal.