core: fix portability with g++