Fix linking against c++11