fixing various compiler warnings.