Fix build failures on EMX for output-sync support.
5 files changed