Bluetooth hciattach on FX30S

The build_bluez_util script doesn’t work. I have tried it on different legato versions. On 16.10.1 it builds but hciattach doesn’t run. On 17.6.0 it doesn’t build, crashes out with the error:

config.status: error: cannot find input file: `expat_config.h.in'
Failed in build_bluez_utils.sh:68

But anyway, the versions of the bluez binaries packaged in the demo are already patched ones aren’t they ?