Solaris support for {set,get}_thread_context added.