Some simple monkeypatches to ruby core classes