fix android and ios cross compile error