fix gnu setting in mac