Add thread rules to Android JNI Makefile too