Add support for build on macOS