HDFS-5642: clean up CMakeLists.txt.
HDFS-5642: explicitly add /O2 flag.