An attempt to fix linking on Windows.
you'll notice that src/contact-editor/contacteditor_private_export.h does not properly define CONTACTEDITOR_TESTS_EXPORT unless BUILD_TESTING is defined
@vonreth if this works, would you be able to update craft to use it? perhaps with a patch?