Make the code compiliable with gcc.