configswitch doesn't output integer values, so explicitly cast to integer just in case
We haven't used the c-client extension for awhile now
Fix version dependency
Clearer logic
Fix linking attachments if a threshold is configured (Bug #12173)