Nest boxes made from corks

Are home made nest boxes made from wine bottle corks safe and practical for birds? There seems to be a lot of glue used in the creation of them, plus I understand cork can go mouldy after time when exposed to moisture.

Thanks in advance for the advice!