Fix build on cygwin after switch to -std=c++11