Aquarium silicone will be fine as far as safety goes, and it should do fine for holding cork-to-cork as long as it doesn't get too wet (may change the shape of the wood and cause problems).
For using wood molding / trim / whatnot, I would just avoid any particle board or composite materials -- most of the glue in those doesn't hold up well to moisture.