Use AX_CXX_CHECK_LIB from autoconf archive instead of AC_LIB_HAVE_LINKFLAGS which is from gettext and causes a bunch of other stuff to need to be copied in.