Core: Fix compile with WITH_COREDEBUG option enabled