Fix automake warning. Add pragmas to sources generated by Thrift using sed instead of incorrectly overriding CXXFLAGS.