Before using g++ change
Added config files support. Rewrited Makefile to support g++