Clean up byte-compile warnings and errors

Byte-compiled using the command "emacs -batch -q -f batch-byte-compile php-mode.el". This produced some warnings and errors. Fixed some of these so now byte-compiling produces fewer warnings and no errors.