Enable more gcc warnings and fix issues they found.