fixed compiling issue with GCC 4.7
fixed all warnings except for id2addr, which can be suppressed by adding '-w' to nvcc but wasn't
Merge pull request #1 from tolot27/master

fixed compiling issue with GCC 4.7