Fix compile error on WP8
Merge pull request #7381 from visiblelight/wp8_v2_fix

Fix compile error on WP8