fix various warnings so i can re-enable the jenkins warning job