Fix for the winrt/windows8 builds that do not have Thread support.