typedef KGLinearGradientDirection enum to avoid multiple definition
Add explicit type cast and curly braces to appease compiler
Merge pull request #14 from audun/master

Fixed a few minor compilation errors when using ObjC++