postgresql: fix attribute order
Adjust optimization flags if the CPU does not support SSE4

Tentatively fixes #21778, #24363.
Require Formula before using it
freetype 2.5.1
imagemagick 6.8.7-7