Fix build error on liunx.

We are using |ninja| and enable c++ 11 by default.