[core] fix build.