add checks for xml and dom when installing

fixes #1646 

Hash is already built in http://www.php.net/manual/en/hash.installation.php