fix compatibility bug, set Makefile to work properly for Windows32