Fixes std::thread not working with clang compiler on Android in NDK r8/r9.