more cmake fixes.
Remove some debug output.
Make hash construction safer.