More changes for 64-bit

Initialize struct values for MEMORYSTATUSEX to avoid warnings. Change
registry key access method to avoid errors.