(OSX/iOS) Adds OSX and iOS support

And other things as well.