fix broken gcc compatibility