replicate @snevesbarros reset fix for building safari