Fix style and warnings.