Make external library search more robust on unix systems.
Merge pull request #3 from bduisit/master

Make external library search more robust on unix systems.