make restrict vars g++ compatible

use shoco_restrict in shoco.c for g++ compatibility.