Made compilable under MSVC 2010