To prevent mold in bird seed, keep feeders dry by using weather domes or rain guards.
Make sure proper drainage is in place.
Store seeds in dry environments.
Regularly clean feeders with hot, soapy water if seeds become damp or moldy (Source).