Fix compilation of 64-bit plugin
Fix format string.
Fix function arguments.
Cheat and use -isystem to omit errors from IDA headers.