Fixd strict errors in php 5.4