Bodgefixes for x64 warnings emitted by VS. Mostly std::size_t mismatches & ptr size differences.