Add Mac-compatibility