Fix for black screen on Linux upon starting a game

Depends on @magcius's branch to be merged.
What settings are we talking about? WGL uses the native way of retrieving window dimensions from the window handle. AGL casts to a wxPanel and pulls the handle out of that to get a valid handle (gross) then from there on uses native ways of getting dimensions.