utmp fixes

This patchset fixes one bug and several test-suite issues regarding arch dependent struct utmp and dns problems.