Add .links.cache files to .gitignore.
Use ocamlfind to locate libraries.

There's no need to detect the optimized compiler binaries any more, since findlib handles that.
Switch to using the 'deriving' library maintained by the Ocsigen project.
Remove deriving source; use the Ocsigen/OPAM version instead.