Azambella, I don't see your photos so I don't know how your cabin sole is now. So I put out two answers to this:
1. If you are bonding finished flooring material to 'underlayment'/'subfloor' plywood: EPOXY. Use nothing that can grow old and admit water. Use nothing water-soluble (like standard flooring adhesive). Use no products from HoDePo. This is a vital bond which, if compromised, or done poorly, will directly cause the rotting of the 'subfloor' plywood. The number-one reason for rotten cabin soles is water allowed to remain trapped between the plywood and whatever's on top of it (carpet, rubber mats, poorly-bonded teak & holly, etc. (This was what was wrong with my boat with I got it.) Even standing bilge water does not do this kind of damage.
Hatches need to be cut into this for access (never eliminate any access to any part of the bilge). Each piece should be treated like water damage to it can destroy the boat.
Avoid parquet flooring, worthless short oak boards, and other flooring products from HoDePo unless they are solid wood or plywood (no waferboard) and unless you use true marine-grade adhesive (epoxy, with a little thickener added) to bond them. It's not a house; it's a boat. Get out of the house store. Go get boat stuff.
2. If the finished-sole boards are being set into a fiberglass liner, or are otherwise themselves the whole sole (i.e., no 'glassed-in 'subfloor' under them), like the photos HMT2 posts: nothing. These must be removable. Tack them in with little screws. Fasten Perko bullet catches (part #505) to the liner and allow them to snap into place (HMT2's look like they used to have these). Make ample (7/8") finger holes to lift them out-- these make good drains. Make it simple and cheap, easy to remove them, as NJLarry says. If the bilge floods, let them float free.
If you must drill into the fiberglass liner to fit hardware, treat the screws with 4200 to keep the water out of the liner's layup. If you feel clever, install threaded inserts and use flat-head screws down through the top.
This is really the best-case scenario. The very best is that you can make these out of anything at all-- they don't have to be teak & holly. Mine are mahogany cabinet-grade plywood saturated in epoxy and done in spar varnish. Do not avoid the epoxy, especially on the bottom (and edge-grain!). These should be sealed completely in epoxy, then finished in high-wear (spar-grade) varnish or something else. You can even add nonskid compound to the varnish (this has been done for generations and is a very traditional aesthetic). Again, no products from HoDePo will suffice for a true yacht. I varnished the steps of my companionway ladder in Captain's Varnish, I step on them every day, and they are still looking good 3-4 years since the last coat. You don't get that with Minwax-brand homeowner-grade varnish.