Change the constructor of CacheReader.
diff --git a/lib/bcc/CacheReader.cpp b/lib/bcc/CacheReader.cpp
index 14dd03e..ddb0258 100644
--- a/lib/bcc/CacheReader.cpp
+++ b/lib/bcc/CacheReader.cpp
@@ -51,14 +51,14 @@
   if (mpFuncTable) { free(mpFuncTable); }
 }
 
-ScriptCached *CacheReader::readCacheFile(FileHandle *file) {
+ScriptCached *CacheReader::readCacheFile(FileHandle *file, Script *S) {
   // Check file handle
   if (!file || file->getFD() < 0) {
     return NULL;
   }
 
   // Allocate ScriptCached object
-  mpResult.reset(new (nothrow) ScriptCached(mpOwner));
+  mpResult.reset(new (nothrow) ScriptCached(S));
 
   if (!mpResult) {
     LOGE("Unable to allocate ScriptCached object.\n");