Fix compilation error in CF projects