[Build] Improve src/CMakeLists.txt

 * Reorganize the file a bit.
 * Add and improve comments.
 * In MSVC, RelWithDebInfo and MinSizeRel configurations now use static C
   runtime (as already done for Release and Debug configurations).