Support CUDA implementation of ClassNLLCriterion

The `nn` component of https://github.com/torch/cunn/pull/44.