There are two common types of problems which can cause build failures (other the compilation errors).
The first is not starting the prompt shell properly. If you do not select the shell through the development command line, you will not have the environment variables proper set for the ddk build. This will cause undefined errors on execution statements.
The second type of problem is not having the Microsoft C++ compiler installed. This is the default compiler for the ddk build process.