runtime: kotlinNativeMain should return status code and main should return it to the system
runtime: kotlinNativeMain should return status code and main should return it to the system

(cherry picked from commit acef5ed7e2f7e1d9478d77a1d3405873a7537db1)

wiltonlazary/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,wiltonlazary/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,wiltonlazary/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,wiltonlazary/kotlin-native