make restrict vars g++ compatible