importing Control.Monad.IO.Class explicity.

trying to resolve #277.