Fix building the tests with Visual Studio 2012 (thanks Isaac!)