create callback differently on julia v0.2
Merge pull request #47 from JuliaGPU/vc/0.2/events

create callback differently on julia v0.2 fixes #45