api.c, ocl.c, util.c: Fixed unfreed memory, mostly in json()-calls.
ocl.c: First fix for 32-bit support.
configure.ac: Version bump to 3.7.7c.