It's only fairly recently (18th century or so) that "want" has come to primarily mean "desire". Before then, any examples are at best ambiguous and by far the primary meaning was lacking or needing something, rather than just desiring it. So it might not be incorrect to say "want" to mean "need", just really, really old-fashioned 