Update files from latest automake
Fix code indentation

This fixes 2274b41.
Clear proper buffer length

This fixes 3d29861.
Fix password modification by root

This fixes 15fc13c.
Add missing include for FreeBSD
Return correct port number on Solaris

This is a small fix for when using nscd (which still does not seem to
work completely). The port is stored in network byte order but should be
printed in host byte order.