Friendlier compilation script

Detect build error; provide summary on success; (hopefully) support both linux and OS-X