Return :EOF when peeking at the end of a lockfile

This allows handling of dependencies to work properly lockfiles that do
not have a trailing newline.

Part of #727
Set GEM_HOME for extension building

RequestSet#install_into needs to set GEM_HOME so that the extension
building can find previously installed gems.

Part of #727