Added a sanity check.
Android: fixed compilation errors with the Clang 3.2 and GCC 4.7 toolsets.