Remove executable attribute from the sources
Use SEPARATE_ZVAL_IF_NOT_REF instead of SEPARATE_ZVAL
Add missing locale.h
Workaround for valgrind and old libc