modify gcc to g++ in makefile for linux.
fix bug #ifdef #ifndef complicated pattern