remove -ansi because it interferes with -std=c++11

Is this the right solution?