[wx] Build fixes after recent changes.