Use a mode that exists on Linux systems.
Fix the build by omitting methods from io/console.

Rubygems started requiring io/console sometime between 1.8 and 2.2 which brought in all these extra IO methods. We don't actually care (for now) about stubbing these.