build.sh fixes/workaround for linux/mac.
Merge pull request #51 from anirothan/master

build.sh fixes/workaround for linux/mac.