fix configure and make issues against php 5.4

addresses videlalvaro/mypeb#1 videlalvaro/mypeb#3