safeguard against php 5.2- and lack of php-curl