Simple changes to be homebrew friendly

.. 
You would need another variable LIB_DIR to takeinto account that homebrew put its libraries in usr local and macports in opt local.
After this suggested last change, it seems fine to me :-)
Thanks!