Fixed compiling with GCC