build.sh switched to use cmake

Per Issue #677