Fix be_linked_to for Darwin

I've fixed `be_linked_to` matcher to support Darwin based OS.