Use stdint types

Signed-off-by: Pekka Enberg <penberg@iki.fi>