Changed the order in which pthread_setname_np argument types, darwin have proper compilers so assume this platform properly detects the right parameters.