Silence the linker on Windows so tests pass

Authored by Phyx.

Description

Silence the linker on Windows so tests pass

Silence the unconditional debugBelch statements recently added to HEAD
which on Windows cause debug information to always be printed.

Differential Revision: https://phabricator.haskell.org/D1338