fixing Strict Standards issues, primarily improperly declared static methods and improper use of references.