Fix warning about implicit declaration

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Fix non-exhaustive switch statement warning

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>