You can be nice about a well-meaning but ultimately misguided complement without taking it seriously.
Made sense because compliments made me feel weird, even though I freely gave them out.
Since then I've trained myself to smile, make eye-contact and say "Thank you, I accept your compliment with confidence," before returning to the matter at hand.