The UN warned Thursday it was running out of funds to house families in Gaza, as it doubled its estimate of the number of homes damaged or destroyed in this summer's war with Israel.