Fix building on Mavericks