restrict nginx dynlib change to mac, where it is used