Fix all errors and warnings.