add build script for macosx