Tell Microsoft compiler to behave more standards compliant. Added missing dependency in the CMakeLists for unit tests.