Fix LDC linker flag specification and add workaround for conflicting object file names.