updated Makefile to support g++ compiler