support android build

support android build
This commit does not affect to each submodule's original standalone build system.
Added platform check routine for future work.