all: fix some compile warnings in debug code