for winphone and iphone compile