fix strict warnings for php 5.4