I'm guessing since that one is using wxGTK, it tries to initialise wx and hence GTK first. Since it can't it just dies. What you're suggesting would be kind of nice if it could be done though.
edit: I'm pretty sure wx is responsible for "main", whenever you write something that uses wx you only derive from wx base classes. This would seem to say that wx is always initialised first so you can't do what you're asking.