Fix link.rs on OS X