[FIX] Using pthread_setname_np() requires glibc >= 2.12

pthread_setname_np() was used for naming openPOWERLINK threads on
Linux. As the function requires glibc >=2.12 it fails to compile
on older version. No we check for the glibc version by using the
preprocessor macros __GLIBC__ and __GLIBC_MINOR__.

Change-Id: Ic3ea4c08d5265d51b33cd0d2dd4a2a6e8140a17c