Adds support for OSX compiling.