fixed GCC warnings