Building a CUDA 3.0 dll wrapper, compile errors