Added posix thread support and removed solaris thread support