Link with $CXXFLAGS; disable GCC-specific autoconf check (squash fixes).