cleaned up the build system detection. added gcc build on windows.