Fix deprecation warnings for SmallIcon()
I've introduced a smallIcon inline function in some compilation units to
avoid blowing up the code. A cleaner solution would be to avoid the code
duplication and make move it into the Utilities namespace instead.