The code at the bottom is likely because you have a debug build. Seeing the SQL code can be very helpful at diagnosing problems, which is why we turn it on for a debug build.
You should be able to run VS and recompile as a Release build. The whole point of the Team VHD is that it is already setup to compile.