Fix Darwin build