Sorry guys! I realise I am testing your patience.
I have now put the code in "global scope" (did not know before what that really meant) and that error is now gone.
The EA now compiles successfully after I commented out the "include" statement.
Thank you for your help and patience. Much appreciated!