fix build errors.