well, i didnt read the code but it seems it uses long as opposed to some fixed-size types.
otherwise the types wouldnt mismatch with mingw64, i guess.