GCC warning fixes