Fix incompatibility with C++11