updated building for Mac