Patches for ECL to run on android iOS and Native client