[compiling] Build with -Wshadow and fix errors from that.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Merge pull request #46 from plundstr/master

[dsmetool] Added --clear-rtc parameter to dsmetool
Merge pull request #47 from saukko/master

[compiling] Build with -Wshadow and fix errors from that.
[state] Made direct transfer from ACTDEAD to USER optional. Default reboot

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Merge branch 'master' into next
[systemd] Use systemctl commands for shutdown/reboot

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>