added support for gcc and g++