fix iOS & marmalade & android build.