Changed typedef enum to use NS_ENUM macro, so swift will convert them into enum
Fixing build issues
Merge pull request #1 from ellisw/master

Changed typedef enum to use NS_ENUM macro to make swift compatible