Make it work on linux and osx