Set single CPU affinity to avoid access violations
Always use DIB sections for surfaces