Add support for named threads (pthread based os only)