mk: fix combined lib build with ABI versioning