Compiles on iOS and Mac
Merge pull request #13 from ricardoquesada/fixes_compile_issues_xcode

Compiles on iOS and Mac