Fix travis-ci failures for rake dependency and corecountpercpu on Ruby >= 1.9.3