Added linking to libcuda to the static tests