build: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r