Support for packaging for Ubuntu/Debian and minor improvements

Hi,

I've prepared a set of patches that adds support for packaging on Ubuntu/Debian. Please consider merging them.
You can inspect resulting packages here: https://launchpad.net/~eugenesan/+archive/ppa/+packages?field.name_filter=whdd

Also note that there is a compatibility issue with newer toolchains. Observe following build log for details:
https://launchpadlibrarian.net/143734346/buildlog_ubuntu-saucy-amd64.whdd_2.0rc2-0~eugenesan~saucy_FAILEDTOBUILD.txt.gz

Regards.