You could use a layer of luan board on top of the foam and use long screws to attach to the base below the foam. Then track nails or screws to the luan board.
This luan board is attach to the spacer blocks with screws.
Atlas track, cork road bed, and luan board.