changes for Win7
reuse of cl_mem objects
fix in BrickManager
use wgl window handle / context handle function