Hovnanian narrows loss in Q4, shows gains for year