More uint fixes.
MinGW needs cstdio included to find sprintf.
Ubuntu 14.04's C++ already defines these, so guard them.