remove OSX-specific code from example

Requested by @BrendanTHalpin