Fix missing header include
Use env to store compositor endpoint