modify makefile for multiplatfom