fix demosSandbox

small fix for the demosSandbox to successfully initialize openGL on Linux.
Added some more error handling and replaced a depreciated wxWidgets call with a supported one (other param order in constructor).
Now the window doesn't stay gray any more :smiley: