JIT on OSX

As discussed with @ptarjan, these don't fix the JIT entirely (though you can now do a JITted ``echo 1`` on OSX), but these are fine to land on their own.
Another comment

> I'd prefer to abstract this out into another function, to limit the amount of stuff that's inside #ifdef APPLE.