macosx patches
Merge remote-tracking branch 'origin'