Fix compilation of tests on MSVC 2008