make shoco compile without error on gcc

https://gcc.gnu.org/onlinedocs/gcc/Restricted-Pointers.html
Tested with gcc 4.9.2.
Merge pull request #7 from gj12/master

make shoco compile without error on gcc