arch: Fix warnings in C entry point

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
core: Fix the last set of warnings

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>