Building LO on Debian stretch fails due to issues with Harfbuzz

I have been attempting to build LibreOffice from source on Debian stretch (dist-upgraded from Jessie with no issues whatsoever) on a remote VM.
It seems I am having an issue with libharfbuzz-icu as make fails with the following error:

[LNK] Library/libvcllo.so
/opt/libreoffice/core/workdir/CxxObject/vcl/source/gdi/CommonSalLayout.o: In function `CommonSalLayout::LayoutText(ImplLayoutArgs&)':
CommonSalLayout.cxx:(.text+0xf85): undefined reference to `hb_icu_script_to_script'
collect2: error: ld returned 1 exit status
/opt/libreoffice/core/vcl/Library_vcl.mk:20: recipe for target '/opt/libreoffice/core/instdir/program/libvcllo.so' failed
make[1]: *** [/opt/libreoffice/core/instdir/program/libvcllo.so] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:276: recipe for target 'build' failed

I have search and looked around and it seems this was also an issue that appeared and was resolved 4 years ago (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709926)

I need to build a version of LibreOffice for use with LibreOffice Online, but I can’t for the moment resolve this blocking issue. I’d appreciate any light shed on the matter.

Turns out that the dist-upgrade wasn’t as successful as I had thought (even though there were no error messages during the process. Once I installed on a new Debian stretch server, the library issue disappeared.