x86 gdi output working. Bug fixes.