fix generated Makefile for ruby1.8
v3.1.1