Constructing Green's function for the time-dependent Maxwell system in anisotropic dielectrics