changes to get command line tool to compile and run in VS2012--qt app not even close to working yet