service_mapper: store config to ensure options are processed

At the moment the configuration is global so starting another mapping will
override existing config.
misc: Consistently use hts_strdupa() instead of libc strdupa() which is Linux specific.
build: Fix compile warning with clang 3.3

src/descrambler/cwc.c:493:11: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
  if (len < 0) return -1;
      ~~~ ^ ~
build: Fix compiler warning and properly cast return value of pthread_self() to long
EN50494: first commit
- works with same hardcoded values (needs to setup)
- setup via gui is missing
EN50494: replace hardcoded en50494 tune-freq with calculated one
install: Properly install manpages in mandir/man1 which also fixes Bug#1064.
build: Hide glibc workarounds in PLATFORM_LINUX because it does only make sense on Linux.
build: Fix clang compiler warning
freebsd: Assume all devices on FreeBSD are USB 2.0 per default because
FreeBSD does not have sysfs to read the device speed and type properly.
The good thing is that there are no PCI devices that support V4L right
now so all supported devices are from webcamd which only supports USB
devices so that default is always correct.
misc: Add ifdefs for linux specific prctl(2)
EN50494: fix subelement creation for multi-port switches
EN50494: fix copy'n'paste misstake
EN50494: configuration storage
- add save configuration
- set default values
- raise variable length to 16bit (needed by configuration save)
EN50494: add gui interface for configuration
- EN50494 configuration
- revert drop off compiler optimation
EN50494: small fixes
Revert "freebsd: Assume all devices on FreeBSD are USB 2.0 per default because"

This reverts commit fd75ad6d3d71429f9e82339bd5abdb391725923b.
pthread: Set name of thread for easier debugging on FreeBSD
EN50494: convert fields for id and pin to a drop down box, on gui
EN50494: better pin drop down