check required php extensions early, before PEAR monstrocity gives uninformative errors