Fix most compiler warnings. The last warnings at WARNS6 will need to be