Fix CRM-15212. Staticify PHP4 stuff. Ugh.

Some pretty old code and a ticket in JIRA says CiviCRM may never pass E_STRICT anyway, but this might not hurt.