Mac OS compatibility changes