make WinRegistryKey compile on pre-C++11 compilers