Detect the existence of sys/personality.h in cmake.

Older android native sysroots don't have sys/personality.h. For them, we
need to include linux/personality.h and hack some macros to get the
desired result.

Change-Id: I8d5c378eaed852e4235d8fce4be2ddc82995ba79
Fix build for android.

Android sysroot headers have a few differences with standard linux like
not having strtoull or snprintf in std::. We can just use symbols from
the root namespace instead.

Change-Id: Ib104e8db2e66792a58d3c3299024ba1e47bde5c8
Add build scripts and tools for android.

Change-Id: I2a151862b432d78c461b359eb4fa74e02df0ecb0