Make the program compile and work on Win32/VC++