Fix to build.sh, so that handle glibtoolize on OSX.