Helpers to limit the number of threads used in the common native libraries.
