port nll class to use hemi

now compiles on either cpu or gpu, per hemi portability magic, falling back to
g++ if CUDA_ROOT is not set. It still requires CUDA runtime headers.

also, since nvcc doesn't like C++11, reverted to C++03.