Fix compilation on Darwin