Generate PID-File based on libbsd and its man page example.
Log error if keyboard/backlight setting did not work.
Merge pull request #2 from mrueg/master

PID-File generation, fix some warnings