repl: Ensuring private Buffer object by require in lib/* files

Fixes usage of global object 'Buffer' in lib/* files by ensuring
that each file does an explicit require('buffer').Buffer.
Previously, when running a repl, due to usage of global 'Buffer',
any redefinition of Buffer would cause a crash eg var Buffer = {}.