Use c_style enums instead of raw statics

Type safety ftw!