Warning cleanup

A variety of changes to fix warnings in the C & Fortran libraries. Some of them appear to be potential bugs. There are still a lot of uninitialized variable warnings in evalresp, but I really don't understand that code to fix them. In general, that code looks a bit fragile, though.