Merge pull request #1404 from nico/c++17

make ninja build with -std=c++17