Fix warning: commas at the end of enumerator lists are a C++11 extension [-Wc++11-extensions]