Hopefully proper use of LIBADD to fix LDFLAG ordering problems.