Make sure pj_thread_desc passed to pj_thread_register is valid for lifetime of thread
Fix compiler warning
Merge dev and remove pthread_cleanup_push code
Merge pull request #818 from Metaswitch/issue745

[Reviewer Matt] HttpStack / PJSIP threading issues