BF: fix for OSX crash

wx + pyglet + objc == segfault on exit if wx is imported before objc.