fixed ldlfags and gfx.c to compile on windows