quick bug fix and added compile options for wp8