added missed -lpq