fix build flow in makefile
add build for mingw