fix a number of compiler warnings.