Corrected writeStr call in compileNativeStructure