CMakeLists fixed.

Added some platform CFLAGS.
Increased -O1 to -O2.