compile on MacOS