Current plan is to have a tests/ folder in packages, where each
file in this folder is a shell script which indicates a test
failure by a non-zero exit value.
The Android NDK headers define the RTLD_* values within an enum,
which causes problems with #ifdef checks. Patch these to instead
use #define which is more traditional and what much code expects.
Using executables in /system/bin is fragile since they may not
work due to LD_LIBRARY_PATH containing libraries with the same
name that the executables are linked against (but with different
versions).