Fixed dNOOP bug, closes bug #7

Perl has had a couple of different definitions for dNOOP, and some
of them made nvcc mad. The current solution in the Perl core can be
applied to fix the problem, and that is done with this commit.