fix target compile errors