support android cross build

We need to fix generation routine of codegen in order to android corss build.