core: fix compat with g++