Applied patch from http://www.nethack.org/v343/bugmore/vs2008.txt for Visual Studio 2008 fixes.