Add support to build on the macOS platform