fix cfg of link attribute for window/linux/freebsd

I had to make this change to get it to compile/link correctly on linux.