Trial to patch the dynamic library linking under osx. Have put (back)
the relevant code in utils.c, protected by a ifdef __APPLE__