modify makefile for CSOS build