Fixed the compiling issue with gcc 4.4