Compiles on Windows Phone 8
Merge pull request #8547 from ricardoquesada/windows_phone8_project_fixes

Compiles on Windows Phone 8