there are a bunch of components you need to setup before it will compile correctly.
here is a chat log from when Wind walked me through everything.. i will eventually attempt to convert it into a tutorial...
http://www.nugblazers.com/files/SCtut/Query_Wind.txt