Converts enum typedefs to NS_ENUM or NS_OPTIONS as appropriate

Without this, they cannot be inferred by/using Swift.

Signed-off-by: Daniel Thorpe <danthorpe@me.com>