Remove -lpthread linker flag