fixed some building errors for WP8 projects