Clean up the majority of compile warnings