Moved the 'WINDOWS || WINRT' endif that was preventing the graphics device from being created

Explained in issue #1756