Add Mac OSX compatibility