Fix configure PostgreSQL check

It didn't check development files only runtime.