core: code cleanup

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
core: fix remaining compile warnings

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>