Fix behavior of SilkMarshal.StringToPtr and related methods on Linux (#2377)