Fix almost all lint warnings