Basic OS X support

It's just the one commit, but I guess you rebased so this is ugly :)