Fix and silence some warnings.