Fixed build issues for wp7