Changed main to Cpp file, fixed win32 building