Fixed various PHP Strict warnings.