Make the test suite build on GHC 7.2.
Fix test suite failures on Windows.
Warning on older GHCs.
GHC 7.4 warnings.