Modify makefile for CSOS build.