Fleshed out PThreads backend, added blendmodes, added proper GLX driver closure.