add a define hack to make it compile on Qt 4
changes so that it compiles with VS2010. booo.