try to locate the libs on mac and on linux independently