kms++-util: portability fix