Fix running on OSX