Do as Laurence suggests, you can get L2 farming, which will enable you to collect coconuts. In the meantime put as many villagers on building the dam as possible. The villagers are stronger than you might think; it takes quite a long while before they are severely weakened or die because of starvation. If you are playing on 2 x speed, try reducing it to normal or even half speed. Your villagers will eat less over a period. Grab as many mushrooms as possible, and pray!
_________________________
To err is human; to arr is pirate.