Fix compilation on GCC in C++11 mode.
Fix compilation for GPU only. (MSHADOW_USE_CUDA=1, rest is 0)