Googling for "HLSL compiler" and a few things, I'm frustratingly unable to find where to look for a standalone HLSL compiler for D3D9 so I can tell which lines are causing problems.
I can't see anything in my SDK but perhaps it has a name I am not recognising?