Fix gcc build error