fix thread_local cache
better drawlist
Fix freebsd build
fix build with thread_local
fix compile with future
Global thread support vars
Small changes from future
Merge remote-tracking branch 'upstream/master' into next