Mac buildfix