builds with msvc, apart from a lot of link errors with the tests