fix core data build error