Added include of stdint.h, osx bundles this in stdlib.h but on other *nix systems it is not.