Add iOS build target, fix building for OSX
Merge pull request #3 from meancoot/master

iOS build target