Added the xsha1 library to calculate sha1 hashes. Note: this needs to be compiled in c99 mode to work. i.e. use gcc -std=c99