core: fix unique_path compilation bug
core: add the missing include in .cpp files