Adds support for MacOSX