M/I Homes sees losses of $21.7 million