Changed integer types to use stdint.
Changed NULL to null.
Porting strstr and pointers.