DCMTK links need fix on mac only if not built static

Quick fix to avoid warnings in chain on mac when dcmtk is compiled static