Fix compilation with core_local flag.