Fix numerous memory leaks in OpenCL formats.
ssha-opencl: Use shared auto tune.
Flush log file before signaling children we're done. Closing #798.