fix warnings on a minimal drupal installation