Fix for WinRT compilation

I accidentally broke WinRT with my last changes :(  This should fix it