(Clone Detection) Fixed non-portable SQL
(Binary Analysis) Added function for computing SHA1 of a binary function

The digest is computed from the instructions and static data (optionally
filtered) that belong to a function.
(Clone Detection) Store SHA1 digest for each function

Functions from the same file that have the same digest are treated
as being the same function. The original function ID is used as the
ID for all the duplicates.