Fix detection of Windows Runtime.