Fix cross-build on recent MXE. #3202