Fix one error and compiler warnings with Cuda & clang-3.6