Made anonymous enum a typedef

Helps write FFI bindings
Merge pull request #23 from saghul/spflags

Made anonymous enum a typedef