Windows Test fixes

These commits fix test errors and result in the test suite passing on Windows. I have tested on strawberry perl 5.18.0 on Windows 8.1, strawberry perl 5.18.1 on Windows and perl 5.18.02 on Debian 3.2.0.4-486 to ensure no regressions occurred.