fix so it builds on mavericks