cputest: simplified func to print hashes with algo names

add a prefixed printf with some colors
fix automake and remove useless files, update build.sh

- use foreign AM_INIT_AUTOMAKE to skip COPYING file (which is LICENCE.txt)
  http://www.gnu.org/software/automake/manual/html_node/Public-Macros.html

- use subdir-objects option to fix automake on ubuntu 14.04
output: show the current stratum/algo on new blocks