Rewrite winegcc in preparation for merging with winewrap.