Use the correct ifdefs, so we only load plugins if we've asked for them, not simply if they're available