Changed GPL license text in file headers from GPL v2 to GPL v3, and removed
the rebuild.sh file which was not needed.

The COPYING license file was already GPL v3, and I wanted to ensure that the
verson in the header text matched. I've left the "or any later version" bit
in, and also where applicable the exception for linking against OpenSSL.