diff --git a/rdfx.module b/rdfx.module
index e13eb0f..ee2bf49 100644
--- a/rdfx.module
+++ b/rdfx.module
@@ -7,22 +7,17 @@
  */
 
 /**
- * Path to the ARC2 PHP library.
- */
-if (module_exists('libraries')) {
-  define('RDF_ARC2_PATH', libraries_get_path('ARC2') . '/arc');
-}
-else {
-  define('RDF_ARC2_PATH', drupal_get_path('module', 'rdfx') . '/vendor/arc');
-}
-
-/**
  * Implements hook_init().
  */
 function rdfx_init() {
   // Attempts to load the ARC2 library, if available.
-  if (!class_exists('ARC2') && file_exists(RDF_ARC2_PATH . '/ARC2.php')) {
-    @include_once RDF_ARC2_PATH . '/ARC2.php';
+  if (!class_exists('ARC2')) {
+    $path = DRUPAL_ROOT . '/'. drupal_get_path('module', 'rdfx') . '/vendor';
+    if (module_exists('libraries')) {
+      $path .= PATH_SEPARATOR . DRUPAL_ROOT . '/' . libraries_get_path('ARC2');
+    }
+    set_include_path(get_include_path() . PATH_SEPARATOR . $path);
+    @include 'arc/ARC2.php';
   }
   module_load_include('inc', 'rdfx', 'rdfx.terms');
   module_load_include('inc', 'rdfx', 'rdfx.import');
