detect stdint, and detect int types if stdint is missing
tidy up makefile a bit (still unsure on how to organize it)