modified CS_VARIABLE to hold CS_VAR_MEM as memBlock; fixes issues on OSX