Toolchain modifications for OSX usage