cmake: remove -lpthread from linker_flags