Split into -iOS and -mac
Explicitly cast to int from long
Add .travis.yml