Fix compilation of the "autoinstallation" module

Without these changes, "yk ruby autoinstallation" didn't succeed.