Fix the static linking issue. fixes tstack/lnav#71.

Not enough experience with autotools experience to say that this is all that is needed. Does fix my issue and make check does not barf.