Implemented pthread for MinGW. Added ThreadLocalPtr.
Revert "Implemented pthread for MinGW. Added ThreadLocalPtr."

This reverts commit a774545281861d6c5f0724b4f9319a554a67d081.