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.