Fix gcc build