change how stuff is linked, this should make libtool and automake work nicely again...