Fixed GLSL-compute light and a stupid bug in samples

the material structure was made of vec3 diffuse[3] etc.
Stupid mistake when I switched from floats to vec3... needed to remove
the [3] array.
I also fixed minor issues to make sure samples are running.
I added an optional runtime memory leak setup. A bit redundant on few
files and could be factorized.