Permit building under DEBUG_THREADLOCALS. Thanks snuff.