Add support for buliding on mac