Added autotools build system and fixed a couple of bugs related to packaging.
Fixed a couple of uninitialized before use warnings.
Merge pull request #2 from kwhat/master

Added autotools build system and fixed a couple of bugs related to packa...