dllmain.cpp: Use C stdio for file logging and console output.

printf() is quite a bit faster than cout on MSVC because cout
isn't buffered unless setvbuf() is called.

TODO: Call setvbuf anyway()? It can improve printf() performance
in addition to improving cout performace, though we'll need to
make sure all printf() calls are flushed with fflush() afterwards.