Adjust exception specification according to C++11