Fix main to work in windows compiler