C++ forward decl for enum could not be compiled with g++