CORE: fix compile error in gcc