winpr-synch: picked awakecoding's fix for OS X and iOS