fix configure script so it adds -lpthread when it should