make wp8 and wp8.1 compile correctly