Add -lm and -lrt flags to CMakeLists.txt
Merge pull request #378 from xVin/Add-flags-to-CMakeLists.txt-for-tests

Add -lm and -lrt flags to CMakeLists.txt