more robust makefile for win32 builds