Added support for building on MacOS/X