fixed memory issue between JS and CL
fixed user_data argument for program.build() callbacks