Problem: need removed AC_CHECK_LIB to correctly link everything
Solutoin: restore from previous commit