stlink: simplify maintenance of version and features