Some folks like a solution of vinegar, water, and salt...
I've had this problem before and have found that if you'll let your boat dry completely in the sun before covering it and use a waterproof cover it will help to minimize mold and mildew. I also like to open all of my storage compartments for ventilation before covering my boat.
Hope this helps!