fixed a bug that didn't allow to compile the library on osx maverick
lost the possibility to specify a custom path :( (it search in /usr/loca/lib)