fix some gcc based compiler warnings