Move wxWidgets unicode build check out from misc.py.