Added the dbg module with a universal printf.

This addresses the issue that the default debug output in Visual Studio
comes from OutputDebugString instead of printf, while Xcode is
friendlier to stdout and stderr. The dbg__printf wrapper function
encapsualtes both while adding variadic formatting to OutputDebugString.