What kind of food did they store and eat that was to last five years? And water? The wiki is light on these details in my skimming of it.
The competent explorers learned the habit of eating raw meat from the inuits.
That said, the walrus hut was built by Nansen and Johansen after leaving the ship.