Moved CodeCoverage into a separate cmake condition.
CMake: Added log message for coverage.
Update SetFlags.cmake
Update SetFlags.cmake
Added MSVC guard
CMake: pthread is used only on Unix.
Merge pull request #1129 from mc-server/CodeCoverageCondition

Moved CodeCoverage into a separate cmake condition.
Added generic entity-collecting.

Now any cEntity can be collected, not only cPickups.
This should help PR #1098.