Remove duplicate -rdynamic flag

We already set it in DYNLINKFLAGS, except for
Solaris where it's not needed.