fix core compilation