Do not break xterm scrollback.

screen's default etcscreenrc confuses xterm's scrollback feature so adjust
temcap a little

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/screen/files/screenrc?revision=1.13&view=markup&sortby=date
lines 147-148 (gentoo)
https://bugs.gentoo.org/show_bug.cgi?id=61195
https://galileo.mailstation.de/gerrit/#/c/1275/ (exherbo)

From: Ivan Diorditsa <ivan.diorditsa@gmail.com>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Do not link against libelf.

I'd like to upstream the patch to drop linking dependency to libelf. It is
probably some leftover from old versions of gnu screen and some
distributions downstream upply it for years.

http://pkgs.fedoraproject.org/cgit/screen.git/tree/screen-4.0.3-libs.patch
(Fedora)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/screen/files/4.0.2-no-libelf.patch?revision=1.1&view=markup
(Gentoo)
https://galileo.mailstation.de/gerrit/#/c/1275/ (Exherbo)

From: Ivan Diorditsa <ivan.diorditsa@gmail.com>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Fix job control on DragonFly BSD

DragonFly BSD needs the same trick as FreeBSD does in fgtty(),
or else you lose job control inside screen.

From: YONETANI Tomokazu <y0n3t4n1@gmail.com>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
screen: fix breakage when used inside qemu

when a rootfs is used in qemu with virtio mount,
new files created get the uid of the qemu user, not the uid of the
user inside qemu. this is usually no problem since you have full
access permissions to everything - however, screen did some uid
comparison checks, which only make sense when the screen sockets
are stored in a public place such as /var/run or /tmp.
in our case, they are stored in $HOME, so any screen there belongs
to us and we do not need to compare uids.

Signed-off-by: John Spencer <maillist-screen@barfooze.de>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>