minor fixes for wp8 and windows8