This patch adapts the gallium and libdrm libc plugins to the current workings of the libc. Fixes #1070.