Apply patch from https://github.com/synergy/synergy/issues/3749