Fixed pointer math to work with Unity's old version of .NET