Moev -pthread to linker flags