fix mac compilation issue