gcc 4.8 required for thread_local