Fixed postgres linking.

Starting to hate autotools/bandwidthd now
Merge commit '54c931f'