Fix some 64-bit warnings and incompatibilities: fastcall edition.