Fix gcc compiling