added -std=c++11 support