Enable security manager extension by default.
Fix up the generated permissions.xml generator.