Update CMakeLists.txt

Added a line for extra compiler flags, added comments, and did some general cleanup.

-Wno-parentheses added; the only source of these warnings was the VxWorks headers.