Add OS X target supported via conditional compilation

Issue #83

Got this working for me although it certainly could use some more testing.

Not quite sure what to do with the inputEnabled: code--I don't have a need for it so I've sort of ignored it here. Suggestions are welcome. Please let me know whatever I can do to help get this merged upstream!

Cheers