support android build

Support android build
This commit does not affect to each submodule's original standalone build system.
Added some platform checking code for the future work.