Fix framebuffer artifacts on zoom and screen change

Fixes #9348 by forcing the framebuffer to skip what it's doing every time the active window or the zoom level changes.

Uh... by virtue of being in the same file, also contains a fix for the "strcompi" error on Windows CodeBlocks compilers. Would that be a problem?