cmake stuff
Copy to test.
Fixup windows build.