Use pututline instead of pututxline on systems without utmpx.h.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>