Various changes for wxGTK

The commit message speak for themselves. I'll note some things they don't mention. 

I remove the XErrorHandler. I've experienced both the default and non-default. The current one did about the same as the default one except it had a different beginning (current one started with "GLX error" instead of "[xcb]"). I was able to generate it this while testing out messing with XInitThreads. 

For other changes, please view the commit messages and code comments.