Francois Gouget : winemine: Reorder some functions to avoid forward declarations.