update cmake to support unit tests on windows