Marshalled pointers to primitive types as such instead of using IntPtr

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>