build: Add missing code to build with Ruby1.8.7