Change data types

This is going to a size_t, when switching from using DllImport to
DynamicInvoke, this stopped working on 32bit systems (though 64 worked
fine), as far as I can tell, this works on both.