add build script for macosx
Merge pull request #69 from duthils/master

add build script for macosx