* Do not include aithreadid.h from debug.h, because the latter is included everywhere (from linden_common.h) and aithreadid.h is heavy (includes among others windows.h). * On windows, thread local members cannot be exported.
This code was broken with respect to LLAPRPool. Fix that, and also fixed it for the new AIThreadID API.