test, build: fix Android NDK r9c compatibility

r9c removed the toolchain currently used, and e403a2c4 introduced a test that fails when built against the NDK.

More info on both:
http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Permission-Bits.html
http://developer.android.com/tools/sdk/ndk/index.html#Revisions