Update build for MacOS