notes on mac compilation