made linking work on darwin (using Homebrew)