Fix compilation errors for Constructor and ScopedPersistent.