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.
This avoids the ELF DF_1_NODELETE value being used which most Android 5.0 linkers does not support.