Add fix for authentication with Windows phone 8.1

according to microsoft azure forum is necessary to add this code for the authentication with facebook or google and windows phone 8.1