Fix darwin/linux compatability.