Fix console on OS X

Closes #34