cmake: try disabling warnings as errors

DLL import errors should really be warnings. If they are, this should
allow us to build on windows again.