fixed strict errors to make plugins compliant with php 5.5 standards