OK, as I suspected, it's a matter of
including the right headers.
Yes, it is often not clear which headers need to be included (if you
want to avoid including everything) and this is not well described
in the documentation.
<snip>
Thanks for your patience with my regressing back to
teething problems!