Fix compile on cuda < 5.0.