Added compatibility with gcc.