[cmake] Fix compatibility issue with CMake 3.10 leadig to -D-pthread Closes #34 See merge request !88 (cherry picked from commit 0c45c77e) 9f1feada [cmake] Fix compatibility issue with CMake 3.10 leadig to -D-pthread