updated Makefile to work with gcc4.8