Made conversion const.
Added more warnings.
Fixed return code for build.sh.