Fix building on MSVC 2005