fix cfg of link attribute for window/linux/freebsd