updated windows makefile
improved texture handling and made it more stable