fix win32 and wp8 compile error