Including a header in the build target is the documented solution for depending on
the generation of files via custom targets.
Fixes build on alpine linux.
Version 2 additions by Jakob, still use a semaphore to wake up the client.
But now instead call the compositor wait frame and have that thread wake up
the client, and return immediatly on the IPC channel.