Add gnu++11 flag to unix build.