Added support for the build system on mac os x