fix build error on the platform