Add global platform var to test win8 vs winphone behaviour