Configure ruby and some tweaks