Drop obsoleted code from OpenCL formats, and fix a bunch of little
issues.
OpenCL: Ensure unmapping of buffers.
Fix generic build (-f Makefile.legacy) breakage
which was caused by commit 7ec88f81a3826006e667ff8b2972ec89d87612fa.
Fix to #739.