[FIX] Fix compilation of Linux powerlink userspace daemon

Change-Id: I3dbf1bb9d12e88c6ae4fca45be1485f9b0f1297d
Reviewed-on: http://brateggevoat1/gerrit/627
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Apply fixes for removing compiler warnings

Cleanup code so that it compiles without warnings with
gcc and microsoft visual studio.

Change-Id: I4effcb6a66d175072d60862043979caf0a271cb9
Reviewed-on: http://brateggevoat1/gerrit/626
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>