Waterproofing melamine