reverted to inttypes.h since it gives problems on some unixes