Fix PHP 5.5+ compatibility + require PHP 5.3+