Tidying up the code for standalone compiling (i.e. with CSC.exe alone).