fix building on os x