Mock wxWidgets when running tests.

Ideally, we'd remove all dependencies on wx completely from the non-GUI
parts, but it's dug in too deep for it to be worth the hassle.