Modify main source file to support Win32 window creation