It sounds like you have 2 switches at one end of the room and two switches at the other end of the room. That being the case, one of the black wires can be wired to the light, and the other black wire for the fan. That way, both the fan and light will be on independent 3 way circuits.
Dodgeman