Fix some build problem on different SDK