fix build error on ubuntu