Fixing some GCC warnings