WindowsRT availability check reorganized. Build script updated.