all compilers should use -pthread compiler directive including gcc

When compiling with posix threads support correct invocation of compilers is to use
$(CC) -pthread, and that will use correct flags while compiling and linking source (gcc man page).
Support for solaris is a bit different it should be called with -pthreads ("s" is difference) but i really cannot say if they changed that behaviour to accept -pthread too.