To make install profiles work with the store.install file, please change the first drupal_get_path call so that it reads:
if(function_exists('drupal_get_path')){
require_once (drupal_get_path('module', 'xxx') .'xxx');
}
This bug is reported here: http://drupal.org/node/137868