Various test fixes

Fix up a bunch of compile problems on Windows.
Allow filtering out some unwanted warnings from MSVC- D9002
in particular.