I have not used the command line compiler. This might be a good question to ask over on the DotNetNuke forums. More developers hang out there.
But I just did a bit of Googling and found this
link. The note about making a copy of the DotNetNuke.dll may be what you need.