Restore terminal settings on SIGCONT

Originally implementated by Gaël Lalire at
http://sourceforge.net/p/jline/bugs/75/ .