Fix compilation using C++17