added __unsafe__ modifier to disable name-mangling, fixed some codegen bugs