Fixed compile issues with namespaced enums