Fix some warnings.

As title says.  Fixes all C warnings except deprecated functions and strict aliasing.

Mostly this is just removal of unused variables and constness correction.  The only interesting change is in md4.c which previously claimed to be memsetting the context to 0 in case it contained "sensitive" data, and then only memsetted the first pointer-size bytes.