cmake: seperate src/utils as a library

no need to build it again for unittests