pthread support added for so-synchandler