Fixed setup errors. This should build on windows.