make: restructure flags

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
core: fix missing declaration bugs

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