add fpermissive flag for TTK and DCMTK.