Make the code, compatible from Ruby version 1.8.7 on Ubuntu 12.04