caffe_copy replacement fixup
fix casts (static for void*)