stdint.h replacement typedefs

if compiler does not support C99, use typedefs for int types instead of stdint.h