[wx] Build fixes for recent changes.