Fix several GCC warnings