Update of the configure script

- If LD_LIBRARY_PATH is set the configure automatically adds the listed
  directories to the cmake library search paths.