Elimination of projection effects from vector magnetograms: The pre-flare configuration of active region AR 4474