honours --with-libdir option
fix build with php < 5.3.7
add arginfo to all functions for reflection