Use icu-config if available.

Unfortunately, pkg_config() cannot be used here because it currently
only affects $CFLAGS and $LDFLAGS but not $CXXFLAGS that we need.

This fixes build on systems where ICU is installed in a non-system
directory.