Fix darwin build