some fixes for windows Gl changes that broke windows phone