Add PHP5.3 support