pass at cleaning up most warnings, few more crypt_* fixes to go yet