Fixed lotsa file dependences

It compiles OK on my Windows 7 machine.
Though you must be sure the directories where you installed MinGW and