libc: Add ARCH_ARM flags to enable new optimizations

Change-Id: I2a436f0730201509c6e53da7447835653d75f7f5
Fix possible file descriptor leaking

Original code returns w/o closing the file descriptor
Close the descriptors and free the direct object before
return to avoid leaking

original id of the change I09204a8e989d041a12d6a6a00d1138b958f68a8f

picked from:
https://android-review.googlesource.com/#/c/23191/

Change-Id: I429c7cd0384b993c7f575306bd22be1b9c92fb35
cleanup: turn -Werror back on for ssp.cpp

-fno-stack-protector turns off -Werror because it is compiled in a separate library.

Change-Id: I11aa2559f507774d8d24d679633a7855839db727
dalvik is big enough and ugly enough to handle System.arraycopy itself.

Change-Id: I4b54a15ea101c0c6bab06cfb11e4178f5a57fc05

Conflicts:

	libc/Android.mk
Change-Id: I4b54a15ea101c0c6bab06cfb11e4178f5a57fc05