Revert changes to make thread build for Windows Phone 8.0.
Phone isn't supported yet, so building just confuses users and has undefined behavior at runtime.
Support will be added later.

This reverts commit f832e4c54d732e24434e3d94d79f3df640e6608a.
Revert "Fix test failures and avoid overlong paths"

This reverts commit 19fdd6b4efb8bf5c4b8bea3cf1b4a1748ffabdfa.