Fixed bug that prevented the runtime to compile properly

Re-inserted a few snippets of code that was accidentely removed when
the ACTORS runtime was stripped of resource mgmt functionality.