fix compile error in other env.