Use std::sort instead of qsort_r wrapper.

The HAVE_(BSD|GNU)_QSORT_R in AndroidConfig.h has never worked, and we
should just be using something standard anyway.

Change-Id: I784d6212f6c890a11c4af2f83d1ce2d279708652
Remove MALLOC_LEAK_CHECK references.

Bug: 17378595
Change-Id: Ib9680ef97dfea6bc20d96f0bed90f4553186315c

Conflicts:
	core/jni/Android.mk
Remove MALLOC_LEAK_CHECK references.

Bug: 17378595
Change-Id: Ie7f8af88c7f3b0c3dc2c2e75bbaaa9e6a81269ae
Allow AOSP to boot.

HAVE_OOM_ADJ is really __linux__, and this code should never be run on
another platform.

Bug: 17641445
Change-Id: Ib8174106b6d03c9c2429794a4f582c09cb308646
Fix Minor Reordering Compile Warning

Change-Id: I7ae5988308c9f0a1f2aff17b8b10acb2034bcc76