fix gcc build error