Fix Visual Studio build in cmake