Fixed compilation errors related to namedspaced enums