Install postgresql devel package with postgresql. Thanks for the suggestion @cv