Add -lpthreads to LFLAGS