common::name: Fix compare() and find()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>