porting to gcc on linux

add a Makefile and fix the include issue (baseed on gcc version 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7))