Fix the dll problem

Now we can invoke cuda function from dll