Fix compilation with GNU compiler

This is **NOT** complete port to linux yet. Stuff left to do:

- Replace SendMessage
- Fix linking (there is some fishy .cpp file #including going on in MainFrame.cpp...)
- Replace wgl with glx
- Fix OpenGL stuff