fix some new gcc warnings