fixed hashwriter class in cryptoshi (test!)
fixed a couple of pedantic warnings