gcc warning fixes