fix script

the library paths are correctly set for all the dylib
TODO : call this script from the Makefile