Fix R using gcc 4.8