Fix compile errors on WP8