disable -fno-threadsafe-statics, issue #1289