fix build error in gcc