[JK2SP] Some 64 bit, gcc and clang fixes
[JK2SP] More warnings fixes