fix mac compilation