Added homebrew paths to PATH and LD_LIBRARY_PATH.

Fixed
=====
* Fixed bug in tests where shared libraries could not be found.