Mac build fixes and add OSX build scripts

Change-Id: I794c531247396895f75b5066a31c4c80ddeed6ca