Fix compilation for wp7 target