Fix typos and C++14 support