Fix MacOSX compilation issue