Fixing warnings/bug in NtQueryVirtualMemory.
Removing export impl.
Part 1 of kernel simplification/cleanup: removing externs.
Part 2 of kernel cleanup: merging functions into shims.