avoid ruby compile bug on debian/ubuntu

see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741825