Fix darwin compile