Ensure compat is loaded before instantiating the class.

I am not what you would call a "Ruby Developer." Nevertheless, this patch worked for me.