First stab at compiling against x64.debug

This set of patches allows the shell to run under x64.debug (not x64.release). Still asserts with heap errors after restoring.