fix build sdk issues