Modified includes to undefine main when compiling for windows using mingw