Prefix uint typedefs with boost:: as necessary

This fixes build errors (for me) on Ubuntu 14.04 with gcc-4.7.3. I've confirmed this also works on my Mac system + Windows 7 VM. IIUC, for some reason, there are type incompatibilities between boost's `uint` types and the ones contained in `<stdint.h>` for some (newer?) gcc compilers.