Add support for console builds.

Closes #184.