Fix compilation in rvm