Really fix compilation fix for wxWidgets 2.8.

The previous commit, 37a51b85a338bc2e24411e1d1caa62a8e2231bd8,
introduced another 2.8 incompatibility. Should be really fixed now.

Really fixes #513.