tagtool: fix linking mess