fixes #414: build Travis on both Linux & OS X (including for iOS)

Ok, squashed again into a finally working version. Just awaiting CI and then I'll merge into `master`.