fix wxWidgests 2.6 compatibility under UNIX