Fix another bunch of gcc warnings