Basic debug logging infrastructure

controlled by #define GIF_DEBUG as separate from Debug/Release
Wraps wprintf and OutputDebugString