Fix ext/intl build with phpize

Fixes bug #64284.
Fix ext/sockets build with phpize

Fixes bug #64285