Might be worth using stdint.h at some point, we are further from 1999 than we used to be.