fix iOS build bugs.