Fixed warnings compiling with GCC