Make toolchain compatible for both OSX and Linux