Change memory types from DWORD to QWORD

This was causing memory allocations to fail on x64 in cases where
the higher bits were set in addresses.
Merge remote-tracking branch 'upstream/pr/3416' into x64_injection