More fleshing out of LocalCompiler and bug fixes