Fix compilation of the script manager.