targets/libgl-xlib: add code to inject trace and identity layers