Fixed some warnings that occur when php is running in strict mode. More fixes are coming.