Fixed PHP-479: Compiler warnings

I've also added the forcing of -Wall to the ./rebuild.sh script. Please use
that so that we catch compiler warnings in the future before committing.