As suggested all scripts now use /bin/sh and set -e option.
Fixing autogen.sh scripts

Use -e parameter in all scripts.
Execution bit set to all scripts.
Use autoreconf only instead of calling all different
generators manually.
TCPConnection: Add right address to the node on incoming connections.
Restructured the configure-dev script

Add comments for each used library option.
Add -pedantic to the default compiler options.