Add support for compilation on Macs