Warning fixes

Fixes to warnings and a typo in HACKING.md