Add compile script for mac.