windows: move ispty and raw! to base