This error
/bin/sh: -O2: command not found
make: *** [cash/mebdfdae.o] Error 127
looks like a configuration error, checking the package src directory there is an autogen.sh script. Running ./autogen.sh, ./configure and make resolves this problem.
Fixed in build 20