Tons of changes to get building on windows working better.