autotools: a few more fixups

- AC_PROG_OBJCXX may not be available on in older autoconf
- Move paths from LDFLAGS to LIBS to preserve link order
- Wrap AX_CHECK_LINK_FLAG in double-brackets to preserve flags in older
  autoconf
- Get the full paths to ar/ranlib
- Check for the proper toolchain strip and use its full path