fix up build for mac os x