Fixed some errors in librna/cuda.