Resolving some cmake generation problems on windows.