Fix compilation on GCC in C++11 mode.
Fix compilation for GPU only. (MSHADOW_USE_CUDA=1, rest is 0)
Merge pull request #1 from koute/master

Minor compilation fixes. fix compilation in c++11, and GPU only mode