Fixed C++11 error on cygwin

Changed to use gnu++11 rather than c++11 on cygwin with g++ compiler, as
c++11 defines __STRICT_ANSI__ which causes snprintf to be out of scope,
while gnu++11 dosen't.

Alternate solutions may be preferable.