and as for building a dwelling-place , the best he had been able to do was throw together a simple lean-to of branches and twigs , which at least had kept most of the rain away from him on the one stormy day .