honours --with-libdir option and avoid unwanted rpath
fix previous
start to add arginfo for reflection
fix build with php < 5.3.7
use "p" for path and protect for nul byte security issue
add missing arginfo, reflection is completed