Live-build engine doesn't find standard library

On both my macs I’m unable to compile projects using the live-build engine.
I get a lot of errors like:

error: expected '(' for function-style cast or type construction
error: no member named '__search' in namespace 'std::__1'
error: no template named 'equal_to'; did you mean '__equal_to'?
error: no template named 'is_placeholder' in namespace 'std'; did you mean simply 'is_placeholder'?
error: no template named 'is_placeholder' in namespace 'std'; did you mean simply 'is_placeholder'?
error: no template named 'function' in namespace 'std'

Even with a new GUI application without any changes the live-build engine doesn’t work.

I tried to specify the include paths of the sdk manually, this changes the errors but introduces others (like it can’t find stddef.h)

Compiling from an exported XCode project works fine.

Both macs run OS X 10.14.3 and Projucer 5.4.3

Any idea of what might be going on here?

This was reported and solved here: All projects have errors in the producer but build in Xcode

Thanks! For a new project this solves the problem, for my existing project there still seem to be some dependencies which the live-build engine doesn’t like.
However, this should give me a starting point.