Allow blocks to be passed to #osx