PHP as cgi with Ming

I have successfully compiled php5 as a cgi on my site and with it enabled the Ming module and it shows up in as Ming 0.3.0. The only thing is when I run some of my pages I get an error “Class ‘SWFPrebuiltClip’ not found…” which leads me to believe that it is not using the Ming that I compiled, but the older version which runs on the root of the Dreamhost server (older versions of Ming didn’t include that class for example). Anyone have any experience getting Ming to work?