modify makefile to support ubuntu