Fix the MSVC 2010 build

C++11-style forward declared enums weren't supported until MSVC 2012.