various test harness fixes

* return gcc-like error messages (helpful for M-x compile)
* make colorization only when not stupid
test c interface to hash functions