add build script for mac os x