Only override CFLAGS on RHEL6.

And also don't disable the default compiler optimization.