fixes for inheritence errors in php5.3.3