replicate @snevesbarros reset fix for building safari

wanted to get this in asap. sorry @snevesbarros, you can undo your reset.sh changes, we'll use this now.