Fixed mavericks build