compatibility

used stdint.h definitions rather than size_t ssize_t incase of size variations between platforms.