makefile added, fixed compile error under ubuntu.