mk: fix shared lib build with stable abi