core: fix 2 compiler warnings