modify Makefile for linux and mingw to adapt modification of if and common