Fixed the building of tests on Windows.

The Core tests were not building properly.