cmake: seperate src/utils as a library

no need to build it again for unittests
cmake: fix a typo
Merge pull request #315 from haiwen/seperate_libutils

cmake: seperate src/utils as a library