Removed some duplicate code
Oops - missed a closing bracket
Another example
Added start of osx specific linker code