Correct compilator errors and warnings.