split the igbinary stuff into a separate option
fix random() vs php_rand() for portability
fixed prototype
C89 compat
atoll vs _atoi64
fix stdint usage