added gcc support
added c++0x support if compiler is gnu