qom: allow QOM to be linked into tools binaries