fix annoying gcc warnings