Hi
Seems like I got it sorted for now. The solution, if anybody ever need it is not to try compiling and installing php from source as there can be many vulnerable points that can broke some wordpress functionality like for example the shortcodes. I personally couldn’t find the php “bug” that was responsible for breaking the shortcodes, however came across with this solution that reinstalled a pre-compiled php with most of the modules needed for wp.
https://php-osx.liip.ch/
Now the shortcodes for cf7 and ngg are working again as well as freetype
p