support android build

Add some build option control routine.
We can handle the makefile on configuring time with this commit.
Is this enough?

Plz take a look at this and advise to me.