Fixed compile errors on WP 7.1