fix GCC version detect for platforms other than X86/X64

[alk@tut.by: commented why we're disabling __thread not just for x86]

Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
eliminated gcc warning on __thread configure snippet

gcc complained about lack of matching ' in code that force-fails
__thread detection on mingw