convert global class to a defined type
Merge pull request #12 from eliotk/convert_global_class_to_define

convert global.pp class to a defined type