Merge pull request #225 from colincross/test_link_deps

Add missing dependencies when linking tests