core: include: Fix non-linux compatibility ifdefs

Signed-off-by: Cyril Hrubis <metan@ucw.cz>