make shoco compile without error on gcc

https://gcc.gnu.org/onlinedocs/gcc/Restricted-Pointers.html
Tested with gcc 4.9.2.