fix gcc4 build using makefile