Fix various compiler warnings.