Link against common cuda library

Thanks to Jorg Bornschein for pointing it out

cmr=v1.7.4:reviewer=rolfv