minor mac fixes