Change thread creation to support x86->x64

The create thread functionality would work in all cases except where
the thread was being created in an x64 process from an x86 process.

This commit adds support for this by reusing the wow64 injection code
in this case.
Merge branch 'upstream/master' into fix_thread_create
Update memory alloc to use QWORD types

DWORD was being used, resulting in x64 being unhappy thanks to
pointer truncation. This fixes the problem.
Updated various types from UINT to QWORD

The goal is to avoid pointer truncation where possible so this commit
changes parameter types to qword where it makes the most sense. This
includes all handles (event, process, thread, registry), addresses
and generic parameters.
Land #76, x86 -> x64 thread creation

Also fixes a number of PTR truncation issues...