Yanmar recommends liquid gasket, specifically Three Bond brand:
Three Bond #1 (TB1101): Non-drying liquid gasket; solvent less type, easy to remove, superior in seawater resistance, applicable to various mating surfaces.
They also make others (TB1102, etc.)
In U.S., Permatex is a more common brand.