winpr: fixed build warnings

* moved pthread_tryjoin_np to toplevel CMakeLists.txt
* removed duplicated -DHAVE_PTHREAD_GNU_EXT
Merge pull request #1596 from bmiklautz/pthread_ext

winpr: fixed build warnings
Merge branch 'master' of github.com:FreeRDP/FreeRDP